package edu.hhu.wifispark;


import edu.hhu.wifispark.entry.Caclu;
import edu.hhu.wifispark.task.ObtainCFlow;
import edu.hhu.wifispark.task.ObtainCustomer;
import edu.hhu.wifispark.task.ObtainCustomerLiveness;
import edu.hhu.wifispark.task.ObtainRecord;

public class Main {
	
	public static void run(){
		DBConnect dbConnect = new DBConnect();
		dbConnect.connect();
		Caclu.dao.onLoad();
		ObtainCFlow oCFlow = new ObtainCFlow();
		oCFlow.start();
		LogUtil.log("flow success");
		ObtainRecord oRecord = new ObtainRecord();
		oRecord.start();
		LogUtil.log("record success");
		ObtainCustomer oCust = new ObtainCustomer();
		oCust.start();
		LogUtil.log("customer success");
		ObtainCustomerLiveness oCustLive = new ObtainCustomerLiveness();
		oCustLive.start();
		LogUtil.log("liveness success");
		dbConnect.close();
	}
	
	// java -jar wifispark.jar
	public static void main(String args[]){
		run();
	}
}
